import request from '@/utils/axios.js'

// axios post请求，请求报文默认为json格式
export const Login = data =>
  request({
    // url: 'app/v1_0/authorizations',
    url: 'v1_0/authorizations',
    method: 'POST',
    data
  })

// 发送验证码
export const setCode = mobile =>
  request({
    // url: `app/v1_0/sms/codes/${mobile}`,
    url: `v1_0/sms/codes/${mobile}`,
    method: 'Get'
  })
